how to automate browser tasks